package Test测试;

public class Test2 {

    String str = new String("good");
    char[ ] ch = { 'a' , 'b' , 'c' };
    public static void main(String args[]){
        Test2 ex = new Test2();
        ex.change(ex.str,ex.ch);
        System.out.print(ex.str + " and ");
        System.out.println(ex.ch);



    }
    public void change(String str,char ch[ ]){

        StringBuffer sb = new StringBuffer(str);
        sb.append("123");
        str  = sb.toString();
        //System.out.println(str);

        ch[0] = 'G';
    }

}
